package com.ruoyi.expensereimbursement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.expensereimbursement.mapper.ReimbursementDailyMapper;
import com.ruoyi.expensereimbursement.domain.ReimbursementDaily;
import com.ruoyi.expensereimbursement.service.IReimbursementDailyService;

/**
 * 日常报销Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-25
 */
@Service
public class ReimbursementDailyServiceImpl implements IReimbursementDailyService 
{
    @Autowired
    private ReimbursementDailyMapper reimbursementDailyMapper;

    /**
     * 查询日常报销
     * 
     * @param reimbursementId 日常报销主键
     * @return 日常报销
     */
    @Override
    public ReimbursementDaily selectReimbursementDailyByReimbursementId(Long reimbursementId)
    {
        return reimbursementDailyMapper.selectReimbursementDailyByReimbursementId(reimbursementId);
    }

    /**
     * 查询日常报销列表
     * 
     * @param reimbursementDaily 日常报销
     * @return 日常报销
     */
    @Override
    public List<ReimbursementDaily> selectReimbursementDailyList(ReimbursementDaily reimbursementDaily)
    {
        return reimbursementDailyMapper.selectReimbursementDailyList(reimbursementDaily);
    }

    /**
     * 新增日常报销
     * 
     * @param reimbursementDaily 日常报销
     * @return 结果
     */
    @Override
    public int insertReimbursementDaily(ReimbursementDaily reimbursementDaily)
    {
        return reimbursementDailyMapper.insertReimbursementDaily(reimbursementDaily);
    }

    /**
     * 修改日常报销
     * 
     * @param reimbursementDaily 日常报销
     * @return 结果
     */
    @Override
    public int updateReimbursementDaily(ReimbursementDaily reimbursementDaily)
    {
        return reimbursementDailyMapper.updateReimbursementDaily(reimbursementDaily);
    }

    /**
     * 批量删除日常报销
     * 
     * @param reimbursementIds 需要删除的日常报销主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementDailyByReimbursementIds(Long[] reimbursementIds)
    {
        return reimbursementDailyMapper.deleteReimbursementDailyByReimbursementIds(reimbursementIds);
    }

    /**
     * 删除日常报销信息
     * 
     * @param reimbursementId 日常报销主键
     * @return 结果
     */
    @Override
    public int deleteReimbursementDailyByReimbursementId(Long reimbursementId)
    {
        return reimbursementDailyMapper.deleteReimbursementDailyByReimbursementId(reimbursementId);
    }
}
